buttonClickScript: func() :openHelp(), // open help book
}
----------
Life.helpBook+page1
.# first help book page
.subject 1
Describe Life
.story
Life is a mathematical game by John Conway described originally in Scientific American in Oct. 1970.
Cells in the current generation are examined simultaneously in order to create the next generation using the following rules:
- Survival: A cell with 2 or 3 neighbors survives.
- Death: A cell with 1 or less, or 4 or more neighbors, "dies".
- Birth: An empty cell with exactly 3 neighbors will be "born".
----------
Life.helpBook+page2
.subject 1
Understand the Code
.story
This version of Life adds objects, methods and optimizations to an implementation discussed in "Life with NewtonScript" by David Betz in Byte, March 1994, pp. 191-194.
As a precursor/alternative to buying APDA's Newton ToolKit (NTK), you could register for Newt (see Develop) to obtain a manual and more NewtonScript application examples.
----------
Life.helpBook+page3
.subject 1
Distribute
.story
This version of Life is freeware and may be distributed freely as long as the file "life.nwt" is included and unmodified. You are free to make modifications for your own use.
Copyright 1994 S. Weyer. All Rights Reserved Worldwide.
----------
Life.helpBook+page4
.subject 1
Use
.story
\uFC01\u pattern -- select a pattern
<tap> in cell area to add a pattern, or add/remove individual cells
Clear -- clear all cells, reset gen. counter
Next -- evolve a single generation
Repeat -- evolve until all cells are empty or you tap Stop
Info -- open this help book
----------
Life.helpBook+page5
.subject 1
Develop
.story
If you are interested in object-oriented programming in NewtonScript, developing applications on your Newton, or graphical (turtle) environments, try my shareware shareware development environment "Newt" (newt-devenv-24.sit/.zip/.hqx on uiowa, amug, AOL, eWorld; newt24.sit/.zip on CIS).
Registered users receive a manual and a floppy of several dozen examples including Life (several versions).